package com.atguigu.order.exception;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author fhs
 * Create by 2025/7/11 17:38
 */
/*@ResponseBody
@ControllerAdvice 这两个用一个注解代替*/
@RestControllerAdvice//全局异常处理器
public class GlobalException {


    /*@ExceptionHandler(Throwable.class)
    public String error(Throwable e){
        return "";
    }*/
}
